package cn.handwrit.service;

import cn.handwrit.springframework.spring.SpringApplicationContext;

public class Test {
    public static void main(String[] args) {

        SpringApplicationContext springApplicationContext = new SpringApplicationContext(AppConfig.class);
        System.out.println(springApplicationContext.getBean("userService"));
        OrderService orderService = (OrderService) springApplicationContext.getBean("orderService");
        orderService.test();
        System.out.println(springApplicationContext.getBean("userService"));
    }
}
